package com.itheima.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.model.book.pojos.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper extends BaseMapper<Book> {
    IPage<Book> getBookList(Page<Object> page, Integer categoryId);
    List<Book> getBookShelf(Integer id);

    void addToBookShelf(Integer uId,Integer bId);

    void removeFromBookShelf(Integer uId, String[] ids);
}
